﻿<UserControl x:Class="MetroUI.ImageButton"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             x:Name="ImageButtonUserControl"
             MouseEnter="ImageButtonUserControl_MouseEnter" 
             MouseLeave="ImageButtonUserControl_MouseLeave"
             MouseDown="ImageButtonUserControl_MouseDown"
             MouseUp="ImageButtonUserControl_MouseUp">

    <Image Source="{Binding ElementName=ImageButtonUserControl, Path=CurrentImage}" Height="{Binding Source=ImageButtonUserControl, Path=Height}" Width="{Binding Source=ImageButtonUserControl, Path=Width}"/>

</UserControl>
